package day18;

public class SinglePractice {
    public static void main(String[] args) {
        Hero hero1 = Hero.getHero();
        Hero hero2 = Hero.getHero();
        Hero hero3 = Hero.getHero();
        System.out.println(hero1);
        System.out.println(hero2);
        System.out.println(hero3);
    }
}
class Hero{
    private Hero(){}
    private static Hero hero=new Hero();
    public  static Hero getHero(){
        return hero;
    }
}